<template>
 <div class="feedback">
   <template>
     <div v-for="(item,index) in tableList" :key="index">
       <el-table :data="item.tableData" style="margin-bottom:20px">
         <el-table-column type="index" label="序号"></el-table-column>
         <el-table-column prop="fileName" label="原文件名"></el-table-column>
         <el-table-column prop="compareFileName" label="比对文件名"></el-table-column>
         <el-table-column prop="compareResult" label="比对结果" width="100px"></el-table-column>
         <el-table-column prop="similarity" label="相似度" width="100px"></el-table-column>
         <el-table-column property="radio" label="反馈">
           <template slot-scope="scope">
             <el-radio v-model="scope.row.feedback" label="1">冲突</el-radio>
             <el-radio v-model="scope.row.feedback" label="2">不冲突</el-radio>
           </template>
         </el-table-column>
         <el-table-column property="textArea" label="意见">
           <template slot-scope="scope">
             <el-input
               type="textarea"
               :rows="2"
               placeholder="请输入内容"
               v-model="scope.row.advice">
             </el-input>
           </template>
         </el-table-column>
       </el-table>
     </div>
   </template>
 </div>
</template>

<script>
export default {
  name: 'feedback',
  props: {
    tableList: {
      type: Array,
      default: () => {
        return []
      }
    }
  }
}
</script>

<style scoped>

</style>
